<?php
class Zenddn_View_Helper_Banner extends Zend_View_Helper_Abstract{
    
    public function Banner($position, $limit = 1){
    	$model = new Default_Model_Banner();
        
        $where = "position = '$position'";
        
        $banners = $model->getDatas(array('where' => "position = '$position'", 'limit' => $limit));
        
        if($limit == 1){
            $banners = $banners[0];
        }
        
        return $banners;
    }
}